/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Entity;
import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType=IdentityType.APPLICATION)
public class IDoc {
    @PrimaryKey
    @Persistent(valueStrategy=IdGeneratorStrategy.IDENTITY)
    private Long IDocID;

    @Persistent private String PubNum; // So VB den
    @Persistent private Date PubDate; // ngày phát hành
    @Persistent private String SignByName; // Tên người ký
    @Persistent private String ReceiveNum; // Số ghi sổ
    @Persistent private Date ReceiveDate; // Ngày đến
    @Persistent private Boolean Closed; // Đã xử lý [true/false]
    @Persistent private Boolean Archive; // true: Lưu trữ | false: cần xử lý
    @Persistent private String Subject; // Nội dung trích yếu
    @Persistent private String Notes; // Ghi chú
    @Persistent private String BriefContent; // Nội dung tóm tắt
    @Persistent private String DocumentName; // Upload Document
    @Persistent private String ODocID; // Trả lời cho số VB đi
    @Persistent private Long AccountID;
    
    public IDoc(){
        
    }
    public Long getIDocID()
    {
        return IDocID;
    }
    
    public String getPubNum() {
        return PubNum;
    }

    public void setPubNum(String PubNum) {
        this.PubNum = PubNum;
    }

    public Date getPubDate() {
        return PubDate;
    }

    public void setPubDate(Date PubDate) {
        this.PubDate = PubDate;
    }

    public String getSignByName() {
        return SignByName;
    }

    public void setSignByName(String SignByName) {
        this.SignByName = SignByName;
    }

    public String getReceiveNum() {
        return ReceiveNum;
    }

    public void setReceiveNum(String ReceiveNum) {
        this.ReceiveNum = ReceiveNum;
    }

    public Date getReceiveDate() {
        return ReceiveDate;
    }

    public void setReceiveDate(Date ReceiveDate) {
        this.ReceiveDate = ReceiveDate;
    }

    public Boolean getClosed() {
        return Closed;
    }

    public void setClosed(Boolean Closed) {
        this.Closed = Closed;
    }

    public Boolean getArchive() {
        return Archive;
    }

    public void setArchive(Boolean Archive) {
        this.Archive = Archive;
    }

    public String getSubject() {
        return Subject;
    }

    public void setSubject(String Subject) {
        this.Subject = Subject;
    }

    public String getNotes() {
        return Notes;
    }

    public void setNotes(String Notes) {
        this.Notes = Notes;
    }

    public String getBriefContent() {
        return BriefContent;
    }

    public void setBriefContent(String BriefContent) {
        this.BriefContent = BriefContent;
    }

    public String getODocID() {
        return ODocID;
    }

    public void setODocID(String ODocID) {
        this.ODocID = ODocID;
    }

    /**
     * @return the DocumentName
     */
    public String getDocumentName() {
        return DocumentName;
    }

    /**
     * @param DocumentName the DocumentName to set
     */
    public void setDocumentName(String DocumentName) {
        this.DocumentName = DocumentName;
    }

    /**
     * @return the AccountID
     */
    public Long getAccountID() {
        return AccountID;
    }

    /**
     * @param AccountID the AccountID to set
     */
    public void setAccountID(Long AccountID) {
        this.AccountID = AccountID;
    }
}
